package com.xrit;

import com.xrit.sunnyday.dao.UserDao;
import com.xrit.sunnyday.pojo.User;
import com.xrit.sunnyday.service.UserService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

public class text {
    @Autowired
    private UserService userService;
    @Autowired
    private UserDao userDao;
    @Test
    public void text(){
        User test = userService.findByUsername("test");
        System.out.println(test);
    }
    @Test
    public void b(){
        User test = userDao.findByUsername("test");
        System.out.println(test);
    }
}
